Skip to content

Add Vitest coverage reporting - #69

Merged
ToryMic merged 1 commit into
BreachDirect:mainfrom
broda-spendy:feat/28-coverage-reporting
Aug 14, 2026
Merged

Add Vitest coverage reporting#69
ToryMic merged 1 commit into
BreachDirect:mainfrom
broda-spendy:feat/28-coverage-reporting

Conversation

@broda-spendy

Copy link
Copy Markdown
Contributor

Wire up \�itest run --coverage\ with thresholds checked in CI.

Added:

  • @vitest/coverage-v8\ devDependency for V8-based coverage collection
  • Coverage configuration in \�ite.config.js: v8 provider, text + lcov reporters, thresholds (80% lines/branches/statements, 70% functions), excludes entry points and story files
  • \ est:coverage\ script in \package.json\
  • CI workflow (.github/workflows/test.yml): runs tests with coverage and uploads to Codecov

Current coverage: 95% lines, 87% branches, 82% functions, 95% statements. All 24 tests pass.

Closes #28.

- Install @vitest/coverage-v8 as devDependency
- Add coverage configuration to vite.config.js (v8 provider, text + lcov reporters, thresholds: 80% lines/branches/statements, 70% functions)
- Add test:coverage script to package.json
- Add coverage/ to .gitignore
- Add CI workflow (.github/workflows/test.yml) that runs tests with coverage and uploads to Codecov

All 24 tests pass. Current coverage: 95% lines, 87% branches, 82% functions, 95% statements

Closes BreachDirect#28.
@ToryMic
ToryMic merged commit eb853ff into BreachDirect:main Aug 14, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Vitest coverage reporting

2 participants